package com.example.data.factory.common.Dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class UpdateDictDto {
    @ApiModelProperty("码表编号，系统自动生成（字符“MZB”+5位数字“00001）")
    private String dictCode;
    @ApiModelProperty(value = "码表名称",required = true)
    @Pattern(regexp = "^[\\u4E00-\\u9FA5A-Za-z]+$", message = "编码中文名称只能包含中文字符和大小写英文")
    private String dictName;

    @ApiModelProperty("码表说明")
    private String description;
    private List<UpdateDictDataDto> updateDataDtos;
}
